<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <my-cpn></my-cpn>

  </div>

  <template id="cpn1">
    <div>
      <h2>AA</h2>
      <p>ccc</p>
    </div>
  </template>

  <script src="../js/vue.js"></script>
  <script>
    Vue.component('my-cpn',{
      template:'#cpn1'
    })

    var app = new Vue({
      el: '#app',
      data: {},
      methods: {}
    });
  </script>
</body>

</html>